package distributions;

import java.io.IOException;

public class UniformStream extends RandomStream
{
  private double lo;
  private double hi;
  private double range;

  public UniformStream(double low, double high)
  {
    this.lo = low;
    this.hi = high;
    this.range = (this.hi - this.lo);
  }

  public UniformStream(double paramDouble1, double paramDouble2, int paramInt)
  {
    this.lo = paramDouble1;
    this.hi = paramDouble2;
    this.range = (this.hi - this.lo);
    for (int i = 0; i < paramInt * 1000; i++)
      Uniform();
  }

  public UniformStream(double paramDouble1, double paramDouble2, int paramInt, long paramLong1, long paramLong2)
  {
    super(paramLong1, paramLong2);
    this.lo = paramDouble1;
    this.hi = paramDouble2;
    this.range = (this.hi - this.lo);
    for (int i = 0; i < paramInt * 1000; i++)
      Uniform();
  }

  public double getNumber()
    throws IOException, ArithmeticException
  {
    return this.lo + this.range * Uniform();
  }
}

/* Location:           /tmp/dlpjava/dlpjava.jar
 * Qualified Name:     distributions.UniformStream
 * JD-Core Version:    0.6.0
 */
